{* Личные данные пользователя *}

{* индексы массива $reg_userinfo
   - [0]-login    [1]-email  [3]- наличие административного права
*}

	<br><br>

	<table width=100% border=0>

	<tr>
	<td align=center>

	   <form action="index.php" name=setting_form method=post onSubmit="return valid_setting(this);">
	
	   <table border=1 width=80%>
	
		  <tr>
			 <td colspan=2 align=center>
			 <table bgcolor=#{$smarty.const.CONF_MIDDLE_COLOR} width=80%><tr><td><font color=black class=big>{$smarty.const.SETTING_INFORMATION}</font></td></tr></table>
			 </td>
		  </tr>
	
		  <tr>
			 <td colspan=2 align=center>
				{$smarty.const.REGISTER_REQUIRED}<br><br>
			 </td>
		  </tr>
	
		  <tr>
			 <td align=right><font color=red>*</font> {$smarty.const.CURRENT_PASSWORD}</td>
			 <td><input type="password" name="second_old"></td>
		  </tr>
		  <tr>
			 <td align=right><font color=red>*</font> {$smarty.const.NEW_REGISTER_PASS}</td>
			 <td><input type="password" name="second"></td>
		  </tr>
		  <tr>
			 <td align=right><font color=red>*</font> {$smarty.const.REGISTER_PASS_REPEAT}</td>
			 <td><input type="password" name="second_repeat"></td>
		  </tr>
		  
		  <tr>
			 <td align=right> {$smarty.const.REGISTER_EMAIL}</td>
			 <td><input type="text" name="email" value="{$reg_userinfo[1]|replace:'"':'&quot;'}"></td>
		  </tr>
		  
	
		  <tr><td>&nbsp;</td> <td>&nbsp;</td> </tr>
	
	{if $flag_admin == 0 }      
		  <tr>
			 <td align="left" colspan="2"> {$smarty.const.INFO_ADMIN_PASSWORD}</td>
		  </tr>
		  
		  <tr>
			 <td align=right>{$smarty.const.REGISTER_ADMIN_NAME}</td>
			 <td><input type="text" name="admin_first" value="{$reg_userinfo[2]|replace:'"':'&quot;'}"></td>
		  </tr>
	
		  <tr>
			 <td align=right>{$smarty.const.REGISTER_PASS_ADMIN}</td>
			 <td><input type="password" name="admin_second"></td>
		  </tr>
	
		  <tr>
			 <td align=right> {$smarty.const.REGISTER_PASS_REPEAT_ADMIN}</td>
			 <td><input type="password" name="admin_second_repeat"></td>
		  </tr>
		  
		  
		  <tr><td> &nbsp;  </td> <td>&nbsp;</td> </tr>
	{/if}
		  
		  <tr>
			
			<td align=right> &nbsp; &nbsp; </td>
			 <td> <input type="submit" value="{$smarty.const.CHANGE_BUTTON}"> </td>
		  </tr>
		  
	   </table>
	   <input type=hidden name="setting_page">
	
	   </form>

	</td>
	</tr>

	</table>








